home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98b.txt / 000006_icon-group-sender _Mon Apr 27 20:38:31 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id UAA27967
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 27 Apr 1998 20:38:31 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA08915; Mon, 27 Apr 1998 20:38:28 -0700
  7. Message-Id: <3.0.5.32.19980427182410.007a92d0@doors>
  8. X-Sender: bgbauer#alpha.delta.edu@doors
  9. X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32)
  10. Date: Mon, 27 Apr 1998 18:24:10 -0700
  11. To: swampler@noao.edu (Steve Wampler)
  12. From: Scissors <bgbauer@alpha.delta.edu>
  13. Subject: Re: A few basic questions
  14. Cc: "Icon Group"<icon-group@optima.CS.Arizona.EDU>
  15. In-Reply-To: <swampler-9803271524.AA001226837@orpheus.gemini.edu>
  16. References: <3.0.5.32.19980426052832.007a9be0@doors>
  17. Mime-Version: 1.0
  18. Content-Type: text/plain; charset="us-ascii"
  19. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  20. Status: RO
  21. Content-Length: 1168
  22.  
  23. At 08:24 AM 4/27/98 -0700, you wrote:
  24. >Try any of the following:
  25. >
  26. >var := expr | fail
  27. >
  28. >if not (var := expr) then fail
  29. >
  30. >> Also is it acceptable to use "if expr then expr else expr" all on the same
  31. >> line?  Its getting harder to move around in my code as it gets longer
  32. with >> it all '{' and '}'d on multiple lines.
  33. >
  34. >Acceptable, but not considered good practice.
  35.  
  36. Well, thats what I expected, but I'd hoped I was using an older form. : /
  37.  
  38. What about this example:
  39.  
  40. if expression then {
  41.    expression 
  42.    expression }
  43.  
  44. Saving one line with the last '}' being moved up?
  45.  
  46.  
  47. >
  48. >> Also what are string images used for?
  49. >
  50. >Uh, string image of what?  String images of different things have different
  51. >uses.
  52.  
  53. Well, for example one of the functions in icon is:
  54.  
  55. image (x) : s -- produce string image 
  56. Produces a string image of x. 
  57.  
  58.    Under what circumstances would this be used?  I realise (I think) what
  59. an image is, but im not sure why I wouldnt need an image of an object, if I
  60. have the object itself?
  61.  
  62. There is also an IPL procedure:
  63. fullimag.icn 
  64. Procedures to produce complete image of structured data 
  65.  
  66. Or am I better of not worrying about that for now? : )
  67.  
  68.  
  69.  
  70.